package org.study.neo4j.boot.model;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.neo4j.core.schema.*;

import java.util.List;

/**
 * 电影-人员关系类
 *
 * @author doveylovey
 * @version v1.0.0
 * @email 1135782208@qq.com
 * @date 2025年04月14日
 */
@Data
@NoArgsConstructor
@RelationshipProperties
public class MovieActorRelationship {
    @RelationshipId
    private Long id;

    @TargetNode
    private Actor actor;

    // @Property("relationshipList")
    private List<String> relationshipList;

    public MovieActorRelationship(Actor actor, List<String> relationshipList) {
        this.actor = actor;
        this.relationshipList = relationshipList;
    }
}
